 <ion-view title="{{warehouseDetail.name}}详情">

  <ion-nav-buttons side="right">
    <button class="button" ng-class="{'button-icon ion-ios-compose-outline':!isEdit,'button-clear':isEdit}" ng-click="toggleEdit();">{{buttonText}}</button>
  </ion-nav-buttons>


  <ion-content class="has-header">
    <ion-list can-swipe="listCanSwipe">
      <label class="item-input light-bg">
        <span class="input-label text-right">仓库名</span>
        <input type="text" name="name" maxlength="20" required ng-readonly="!isEdit" ng-model="warehouseDetail.name" autoFocus="isEdit">
      </label>

      <label class="item-input light-bg">
        <span class="input-label text-right">管理员</span>
        <span ng-repeat="keeper in warehouseDetail.keepers">
          <input type="text" name="keeper{{$index}}" maxlength="20" required ng-readonly="!isEdit" ng-model="keeper">
        </span>
        
      </label>

      <label class="item-input light-bg item-icon-right">
        <span class="input-label text-right">所属店铺</span>
        <input type="text" name="store" maxlength="20" required ng-readonly="!isEdit" ng-model="warehouseDetail.store_name">
      </label>

      <label class="item-input light-bg item-icon-right">
        <span class="input-label text-right">状态</span>
        <span ng-readonly="!isEdit">{{warehouseDetail.status}}</span>
      </label>

      <label class="item-input light-bg">
        <span class="input-label text-right">备注</span>
        <textarea rows="3" ng-model="warehouseDetail.remark" ng-readonly="!isEdit"></textarea>
      </label>

      <button class="button button-block button-balanced" ng-show="isEdit" ng-click="updateStore();">保存</button>

      <button class="button button-block button-assertive" ng-if="!isEdit" ng-click="delete();">删除</button>
    </ion-list>
  </ion-content>
</ion-view>
